package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.dao.PatientRecord.HcDrugDao;
import com.healthcloud.entity.PatientRecord.HcDrugEntity;
import com.healthcloud.service.PatientRecord.HcDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("hcDrugService")
@Transactional
public class HcDrugServiceImpl implements HcDrugService {
	@Autowired
	private HcDrugDao hcDrugDao;

	@Override
	public HcDrugEntity queryObject(Integer id) {
		return hcDrugDao.queryObject(id);
	}

	@Override
	public List<HcDrugEntity> queryAll(String medicalName,String acronym){
		return hcDrugDao.queryAll(medicalName,acronym);
	}

}
